<div class="container">
  <form [formGroup]="typeForm" (ngSubmit)="onSubmit(typeForm.value)">
    <div class="row camTitle" style="border-bottom: inset;">
      <div class="col-sm-5 header">
        <span class="glyphicon glyphicon-file"></span>
        <label class="title">新建车辆类型</label>
      </div>
      <div class="col-sm-7">
        <button id="btn_typeSub" type="submit" class="btn btn-default btn-sm buttonSubmit" >
          提交
        </button>
      </div>
    </div>
    <br>
    <div class="row">
      <div align="col-sm-offset-2 col-sm-10">
        <div class="form-group">
          <label class="col-sm-offset-1 col-sm-2"><span class="necessary">*</span>类型代号&nbsp;</label>
          <input formControlName="id" type="text" id="typeID"  (blur)="toSearchId()" />
        </div>
        <div class="form-group">
          <label class="col-sm-offset-1 col-sm-2"><span class="necessary">*</span>类型名称&nbsp;</label>
          <input formControlName="name" type="text" id="typeName" />
        </div>
        <div class="form-group">
          <label class="col-sm-offset-1 col-sm-2">说明</label>
          <textarea  formControlName="description" id="typeDescription"></textarea>
        </div>
      </div>
    </div>
  </form>
</div>
